<?php
class item_m_favorite extends a_base_model_datamapper{
    public function __construct($id=NULL){
        $this->table = "favorite_lists_products";
        parent::__construct($id);
    }

    public function get_product_obj(){
        $obj = new product_m_product();
        $obj->get_by_id($this->product_id);
        if($obj->exists())
            return $obj;
        else
            return NULL;
    }
}
?>